<?php
/* SVN FILE: $Id$ */
/* MgEmpleado Test cases generated on: 2009-07-10 17:07:31 : 1247264971*/
App::import('Model', 'MgEmpleado');

class MgEmpleadoTestCase extends CakeTestCase {
	var $MgEmpleado = null;
	var $fixtures = array('app.mg_empleado', 'app.mg_tipo_empleado');

	function startTest() {
		$this->MgEmpleado =& ClassRegistry::init('MgEmpleado');
	}

	function testMgEmpleadoInstance() {
		$this->assertTrue(is_a($this->MgEmpleado, 'MgEmpleado'));
	}

	function testMgEmpleadoFind() {
		$this->MgEmpleado->recursive = -1;
		$results = $this->MgEmpleado->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MgEmpleado' => array(
			'id'  => 1,
			'primer_nombre'  => 'Lorem ipsum d',
			'segundo_nombre'  => 'Lorem ipsum d',
			'primer_apellido'  => 'Lorem ipsum d',
			'segundo_apellido'  => 'Lorem ipsum d',
			'mg_tipo_empleado_id'  => 1,
			'telefono'  => 'Lorem i',
			'domicilio'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'created'  => '2009-07-10',
			'modified'  => '2009-07-10',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>